package com.hanlp;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Shape;
import javafx.stage.Stage;

// 舞台(Stage) 节点(node) 场景(Scene)
public class App extends Application {
    @Override
    public void start(Stage primaryStage) {
        Button btClick=new Button("Click me");
        Circle shape = new Circle();
        shape.setStroke (Color.RED);
        shape.setFill (Color .BLUE);
        btClick.setShape(shape);
        Scene scene=new Scene(btClick,500,500);
        primaryStage.setTitle("MyJavaFX");
        primaryStage.setScene(scene);
        //primaryStage.setScene(new Scene(new Button("No"),250,250));
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
